<%--
  Created by IntelliJ IDEA.
  User: teacher
  Date: 2023/7/18
  Time: 16:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>员工列表</title>
</head>
<body>
<h1>员工列表</h1>
<a href="">添加</a>
<hr>
<table border="1">
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>工资</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${emps}" var="emp">
        <tr>
            <td>${emp.id}</td>
            <td>${emp.name}</td>
            <td>${emp.salary}</td>
            <td>
                <a href="">修改</a>
                <a href="" onclick="return confirm('是否确认删除')">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
<span style="color:red;">${empMsg}</span>
</body>
</html>
